package com.okyai.qa.domain;

import java.util.List;
import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.okyai.common.annotation.Excel;
import com.okyai.common.core.domain.BaseEntity;

/**
 * 答题记录对象 qa_notes
 * 
 * @author okyai
 * @date 2021-03-19
 */
public class Notes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录主键 */
    private Long notesId;

    /** 问卷主键 */
    @Excel(name = "问卷主键")
    private Long questionnaireId;

    /** 答题人主键 */
    @Excel(name = "答题人主键")
    private Long userId;

    /** 答题人姓名 */
    @Excel(name = "答题人姓名")
    private String userName;

    /** 总分 */
    @Excel(name = "总分")
    private Long totalScore;

    /** 答题时间 */
    @Excel(name = "答题时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date answerTime;

    /** 租户主键 */
    @Excel(name = "租户主键")
    private Long tenantId;

    /** 答题来源[001答题测试 002 课题方案 ] */
    @Excel(name = "答题来源[001答题测试 002 课题方案 ]")
    private String notesSource;

    /** 答题记录项目信息 */
    private List<NotesRecord> notesRecordList;

    public void setNotesId(Long notesId) 
    {
        this.notesId = notesId;
    }

    public Long getNotesId() 
    {
        return notesId;
    }
    public void setQuestionnaireId(Long questionnaireId) 
    {
        this.questionnaireId = questionnaireId;
    }

    public Long getQuestionnaireId() 
    {
        return questionnaireId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setTotalScore(Long totalScore) 
    {
        this.totalScore = totalScore;
    }

    public Long getTotalScore() 
    {
        return totalScore;
    }
    public void setAnswerTime(Date answerTime) 
    {
        this.answerTime = answerTime;
    }

    public Date getAnswerTime() 
    {
        return answerTime;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setNotesSource(String notesSource) 
    {
        this.notesSource = notesSource;
    }

    public String getNotesSource() 
    {
        return notesSource;
    }

    public List<NotesRecord> getNotesRecordList()
    {
        return notesRecordList;
    }

    public void setNotesRecordList(List<NotesRecord> notesRecordList)
    {
        this.notesRecordList = notesRecordList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("notesId", getNotesId())
            .append("questionnaireId", getQuestionnaireId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("totalScore", getTotalScore())
            .append("answerTime", getAnswerTime())
            .append("tenantId", getTenantId())
            .append("notesSource", getNotesSource())
            .append("notesRecordList", getNotesRecordList())
            .toString();
    }
}
